package com.bailan.foreat.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;


import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ste
 * @since 2023-02-21 07:50:43
 */
@Data
@TableName("t_comment")
public class Comment {

    /**
     * 评论id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺id
     */
    @TableField("store_id")
    private Integer storeId;

    /**
     * 商品id
     */
    @TableField("product_id")
    private Integer productId;

    /**
     * 评论内容
     */
    @TableField("content")
    private String content;

    /**
     * 评价等级(0.好评1.中评2.差评)
     */
    @TableField("grade")
    private Integer grade;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 对应订单里商品的id
     */
    @TableField("item_id")
    private Integer itemId;

    /**
     * 评论创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
